<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<div class="head">
    <div class="head_con">
        <div class="fl">
            <img src="images/h_logo.png" alt="" />
        </div>
        <ul class="fr">
            <li><img src="images/yx.png" /></li>
            <li><img src="images/tx.png" /><span><?=Yii::$app->session->get('realname');?></span></li>
            <li>
                <button class="logOut" href="">退出</button>
            </li>
        </ul>
    </div>
    <div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<!--头部导航-->
<div class="nav">
    <div class="nav_con">
        <ul>
            <li>
                <a href="HomePage.html">首页</a>
            </li>
            <span></span>
            <li>
                <a href="">承担单位</a>
                <!--<div>
                    <ul class="nav_li">
                        <li>
                            <a href="">
                                <img src="images/low.png" alt="" class="fl" />
                                <span class="co_sp fl color1">单位层级</span>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="images/jg.png" alt="" class="fl" />
                                <span class="fl">机构概括</span>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="images/jggk.png" alt="" class="fl" />
                                <span class="fl">单位层级</span>
                            </a>
                        </li>
                    </ul>
                </div>-->
            </li>
            <span></span>
            <li>
                <a href="">项目管理</a>
                <div>
                    <ul>
                        <li></li>
                        <li></li>
                        <li></li>
                    </ul>
                </div>
            </li>
            <span></span>
            <li>
                <a href="">资金监管</a>
            </li>
            <span></span>
            <li>
                <a href="">数据分析</a>
            </li>
            <span></span>
            <li>
                <a href="">咨询反馈</a>
            </li>
            <span></span>
            <li>
                <a href="">系统管理</a>
            </li>
            <span></span>
            <li class="active">
                <a href="index.php?r=budget/item">预算控制</a>
                <div>
                    <ul class="nav_li_xt">
                        <li>
                            <a href="index.php?r=budget/item">
                                <img src="images/icon_yj_hover.png" alt="" class="fl" />
                                <span class="co_sp fl" style="color:#00d3d5">课题查询</span>
                            </a>
                        </li>
                        <li>
                            <a href="index.php?r=budget/apply">
                                <img src="images/icon_zj.png" alt="" class="fl" />
                                <span class="fl">报销</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </li>
            <span></span>
            <li>
                <a href="">主菜单</a>
            </li>
        </ul>

    </div>
</div>
<script>
    $(document).on('click','.logOut',function () {
        $.ajax({
            url:"?r=login/loginout",
            type:"post",
            data:{},
            dataType:'html',
            error:function(error){
                console.log(error);
            },
            success:function(msg){
                if(msg == 1){
                    alert('退出成功');
                    window.location.href = "http://www.yii.cn/index.php?r=site/index";
                }else{
                    alert('异常错误');
                }
            },

        })

    })
</script>